<?php

use Biz\Models\User\User;
use Biz\Services\App\AppSiteService;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Artisan;

class SiteSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run(AppSiteService $siteService)
    {
        $site1 = $siteService->create([
            'user_id' => 6,
            'name' => '客户3-测试站点1',
            'domain' => 'http://www.baidu.com',
            'languages' => [
                'en',
                'zh-CN',
            ]
        ]);

        $resource = new \Biz\Resources\App\AppSiteResource($site1);

        $this->command->info($resource->response(null)->content());
    }
}
